package com.by.service.impl;

import com.by.bean.Segmentation;
import com.by.mapper.SegmentationMapper;
import com.by.service.SegmentationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SegmentationServiceImpl implements SegmentationService {

    @Autowired
    SegmentationMapper segmentationMapper;
    @Override
    public List query() {
        return segmentationMapper.query();
    }

    @Override
    public int update(Segmentation segmentation) {
        int rs = segmentationMapper.update(segmentation);
        return rs;
    }
}
